package com.atguigu.gulimail.product.feign;

import com.atguigu.common.to.es.SkuEsModel;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author fangy
 * @date 2022-09-24 20:47
 */
@FeignClient("gulimail-search")
public interface SeaechFeignService {

    @PostMapping("/search/save/product")
    R saveProduct(@RequestBody List<SkuEsModel> skuEsModel);

}
